import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { UsersModule } from "./modules/users/users.module";
import { AuthModule } from "./modules/auth/auth.module";
import { UploadModule } from "./modules/upload/upload.module";


@Module({
  imports: [
    TypeOrmModule.forRoot({
      "type": "mysql",
      "host": "localhost",
      "port": 3306,
      "username": "root",
      "password": "662800gzx",
      "database": "carroll_connect",
      "synchronize": true,
      "logging": false,
      "entities": [`${__dirname}/**/*.entity{.ts,.js}`]
    }),
    UsersModule,
    AuthModule,
    UploadModule
  ],
  controllers: [],
  providers: []
})
export class AppModule {
}
